Skip to content

Add smoketests for template generation#4000

Merged
rekhoff merged 60 commits intomasterfrom
drogus/templates-tests
Feb 19, 2026
Merged

Add smoketests for template generation#4000
rekhoff merged 60 commits intomasterfrom
drogus/templates-tests

Conversation

@drogus
Copy link
Collaborator

@drogus drogus commented Jan 12, 2026

Description of Changes

Basic tests for templates, the test tries to generate each of the template, build and publish the SpacetimeDB part, and build or type check the client side.

This PR also includes bindings for all of the clients as it's needed for the tests to work and given the choices to either generate during the test run or include the bindings in git we chose the latter. This makes it consistent across the templates as some of them already included bindings.

Expected complexity level and risk

1

@drogus drogus changed the title Drogus/templates tests Add smoketests for template generation Jan 12, 2026
@drogus drogus force-pushed the drogus/templates-tests branch from 97e90ea to 2ab9c36 Compare January 12, 2026 15:40
@bfops bfops added release-any To be landed in any release window no runtime change This change does not affect the final binaries labels Jan 12, 2026
@drogus drogus force-pushed the drogus/templates-tests branch 3 times, most recently from 2e87244 to cba8bfd Compare January 14, 2026 17:39
@drogus
Copy link
Collaborator Author

drogus commented Jan 20, 2026

/update-llm-benchmark

@drogus drogus force-pushed the drogus/templates-tests branch from 3bb255e to f9c843f Compare January 26, 2026 18:29
@drogus drogus force-pushed the drogus/templates-tests branch from 688978e to ac10fc1 Compare February 2, 2026 13:27
@drogus drogus force-pushed the drogus/templates-tests branch from ac10fc1 to 81b4a32 Compare February 2, 2026 13:52
@drogus drogus force-pushed the drogus/templates-tests branch from 8d986db to b3e516a Compare February 2, 2026 14:37
clockwork-labs-bot and others added 4 commits February 13, 2026 01:32
# Conflicts:
#	templates/chat-console-rs/src/module_bindings/identity_connected_reducer.rs
#	templates/chat-console-rs/src/module_bindings/identity_disconnected_reducer.rs
#	templates/chat-console-rs/src/module_bindings/mod.rs
#	templates/chat-console-rs/src/module_bindings/send_message_reducer.rs
#	templates/chat-console-rs/src/module_bindings/set_name_reducer.rs
@drogus drogus force-pushed the drogus/templates-tests branch from 596c2d7 to 2fa4b6c Compare February 16, 2026 14:58
clockwork-labs-bot and others added 5 commits February 17, 2026 15:41
spacetime publish accepts --module-path, not --project-path.
The init command correctly uses --project-path and is unchanged.
- Update 8 TS server templates to use the current schema({name: table()})
  pattern with export default and exported reducers (matching basic-ts)
- Copy nuget.config into spacetimedb/ server dir so spacetime publish
  can find local NuGet package sources during dotnet build
@drogus drogus force-pushed the drogus/templates-tests branch from 5183461 to 9e4faad Compare February 18, 2026 14:13
@drogus drogus force-pushed the drogus/templates-tests branch from 80241d9 to 3f64d0f Compare February 18, 2026 18:44
@drogus drogus force-pushed the drogus/templates-tests branch from 880692d to b5ec9bd Compare February 18, 2026 21:57
@rekhoff rekhoff added this pull request to the merge queue Feb 19, 2026
Merged via the queue into master with commit c0442ea Feb 19, 2026
31 of 32 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Feb 19, 2026
# Description of Changes

This patch does the following:

- Adds api reference docs for the module-side query builder in the view
docs
- Merges the client sdk and subscription docs pages
- Keeps subscription and client overview docs high-level (moved all api
docs to the language reference docs)
- Replaces SQL examples in the docs with the query builder
- Replaces SQL subscriptions in the templates with the query builder

Note, the last commit in this patch set transitions the templates over
to use the query builder instead of SQL subscriptions. This will break
them temporarily until #4000 merges.

Also note, a lot of this was AI assisted. It can still be improved upon,
but it's in a better state than it was.

# API and ABI breaking changes

N/A

# Expected complexity level and risk

1

# Testing

N/A

---------

Signed-off-by: joshua-spacetime <josh@clockworklabs.io>
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no runtime change This change does not affect the final binaries release-2.0 release-any To be landed in any release window

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants